package designmode.headfirst.observe.pull;

/**
 * Main
 * <p>Filename: designmode.headfirst.observe.pull.Main.java</p>
 * <p>Date: 2020-09-25 10:25.</p>
 *
 * @author <a href="mailto:liufuguo@qianmi.com">OF3581-刘富国</a>
 * @version 0.1.0
 */
public class Main {

    public static void main(String[] args) {
        News news = new News();
        UserOne one = new UserOne();
        UserTwo two = new UserTwo();

        news.addObserver(one);
        news.addObserver(two);


        news.setNewsDetail("新闻详情");
        news.change();

    }
}
